def read_txt(filename):
    filepath = "../data/" + filename
    with open(filepath, "r", encoding="utf-8") as f:
        return f.readlines()

"""
    问题：读出来的不是预期需要的格式
"""

if __name__ == '__main__':
    print(read_txt("calc.txt"))
    print("--"*60)
    arrs1=[]
    for data in read_txt("calc.txt"):
        arrs1.append(tuple(data.strip()))
    print("arrs1为：",arrs1)#[(),()]

    arrs2=[]
    for data in read_txt("calc.txt"):
        arrs2.append(data.strip().split(","))
    print("arrs2为：",arrs2[1::])#[[],[]]